//
//  WDloanEditCell.h
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/2/17.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol WDLoanEditCellDelegate;
@class WDMaterialDetail;

@interface WDLoanEditCell : UITableViewCell
@property (assign, nonatomic, getter = isFirstCell) BOOL firstCell;
@property (assign, nonatomic, getter = isLastCell) BOOL lastCell;
/** 订单id */
@property (nonatomic, strong) NSString *financeID;
/** 商户id */
@property (nonatomic, strong) NSString *supplierId;
/** 资料信息 */
@property (nonatomic, strong) WDMaterialDetail *materialDetail;
/** 图片数据 */
@property (nonatomic, strong) NSMutableArray *imagesData;
/** 是否是编辑模式 */
@property (assign, nonatomic) BOOL isEditMode;
/** 代理 */
@property(nonatomic, weak) id delegate;
@property (assign, nonatomic) NSInteger index;


+ (instancetype)loanEditCellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath;

@end

@protocol WDLoanEditCellDelegate <NSObject>

- (void)reloadDataTableView:(NSInteger)index collectionView:(NSInteger)itemNum;

- (void)loanEditShowOriginalImage:(NSArray *)images clickIndex:(NSInteger)index;

@end
